package operation;

import book.*;


public class Display implements IOperation{
    @Override
    public void work(Booklist booklist) {
        int i = 0;
        Book book = booklist.getBook(i);
        for (i = 0; i < booklist.getNum(); i++) {
            book = booklist.getBook(i);
            System.out.println(book.toString());
        }
    }
}
